package cn.lzj.system.service.impl;

import cn.lzj.basic.service.impl.BaseServiceImpl;
import cn.lzj.system.domain.SystemDictionaryType;
import cn.lzj.system.mapper.SystemDictionaryDetailMapper;
import cn.lzj.system.mapper.SystemDictionaryTypeMapper;
import cn.lzj.system.service.ISystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author SystemDictionaryTypeImpl
 */
@Service
public class SystemDictionaryTypeImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService {
    @Autowired
    private SystemDictionaryDetailMapper systemDictionaryDetailMapper;
    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;

    @Override
    public void removetype(Long id) {
        systemDictionaryTypeMapper.delete(id);
        systemDictionaryDetailMapper.removetype(id);
    }
}
